package com.example.login;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        Intent intent = getIntent();
        String name = intent.getStringExtra("name");
        String passwd = intent.getStringExtra("passwd");
        System.out.println("1111111111"+name);
        System.out.println(passwd);
        TextView viewById =(TextView) findViewById(R.id.result);
        viewById.setText(name+"密码"+passwd);
    }
}